package com.cy.zs.hp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cy.zs.hp.model.HisUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 该表保存注册用户信息 Mapper 接口
 * </p>
 *
 * @author cgb2008
 * @since 2020-11-28
 */

@Mapper
public interface HisUserMapper extends BaseMapper<HisUser> {
   @Select("select phone from his_user where phone=#{phone}")
   String findByPhone(String phone);
    int insert(HisUser hisUser);
    @Select("select salt from his_user where phone=#{phone}")
    String  findBySalt(String phone);
    @Select("select password from his_user where phone=#{phone}")
    String findByPassword(String phone);
}
